package com.user.chris.controller;

import com.user.chris.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @PostMapping("/user/add")
    public Integer add() {
        int a = 10/0;
        Integer add = userService.add();
        return add;
    }

}
